package com.bwie.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;

/**
 * @Auther:${涛}
 * @Date:2024/9/2 12:07
 * @Description: Rabbitmq
 * @Version 1.0.0
 */
@Configuration
public class Rabbitmq {


//    @Autowired
//
//    private RabbitTemplate rabbitTemplate;
//
//
//    public void seRabbitMq() {
//        rabbitTemplate.setConfirmCallback(new RabbitTemplate.ConfirmCallback() {
//            @Override
//            public void confirm(CorrelationData correlationData, boolean b, String s) {
//                if(b) {
//                    System.out.println("消费成功");
//                }else{
//                    System.out.println("消费失败");
//                }
//            }
//        });
//    }
}


